Avoid C99'ismin gpsutil.c
authorrobertl <robertl>
Sat, 2 Sep 2006 23:19:03 +0000 (23:19 +0000)
committerrobertl <robertl>
Sat, 2 Sep 2006 23:19:03 +0000 (23:19 +0000)
gpsutil.c

index ee28e6cf40ac054931cea4e4b6fc11b4187ec2d3..7f2c9ae8905e4eb78ccfb7067b5f2e145def9d33 100644 (file)
--- a/gpsutil.c
+++ b/gpsutil.c
@@ -64,13 +64,13 @@ data_read(void)
        char alttype;
        char icon[3];
        waypoint *wpt_tmp;
-       icon[0] = 0;
 
        /*
         * Make sure that all waypoints in single read have same 
         * timestamp.
         */
        time_t now = current_time();
+       icon[0] = 0;
        
        while ((ibuf = gbfgetstr(file_in))) {
                int n, len;